
// tabbar图片
const tabRoot = "assets/images/app";
const tabPath = tabRoot + "/tab";
const tabSelPath = tabRoot + "/tab_sel";

const pagePath = (nm) => {
  return `pages/${nm}/index`
}

// 主包
const main_setting = pagePath('setting');
const main_btDevices = pagePath('btDevices');
const main_btDetail = pagePath('btDetail');
const main_btEditor = pagePath('btEditor');
const main_luatosSupport = pagePath('luatosSupport');
const com_webview = pagePath('webview');


export default {
  pages: [
    main_btDevices,
    main_btDetail,
    main_btEditor,
    main_setting,
    main_luatosSupport,
    com_webview
  ],
  tabBar: {
    color: "#cdcdcd",
    selectedColor: "#1d2088",
    backgroundColor: "#ffffff",
    borderStyle: "white",
    list: [
      {
        pagePath: main_btDevices,
        text: "蓝牙",
        iconPath: tabPath + "/bluetooth.png",
        selectedIconPath: tabSelPath + "/bluetooth.png",
      },
      {
        pagePath: main_setting,
        text: "设置",
        iconPath: tabPath + "/setting.png",
        selectedIconPath: tabSelPath + "/setting.png",
      },
    ],
  },
  subpackages: [
  ],
  window: {
    backgroundTextStyle: 'dark',
    backgroundColor: "#fff",
    navigationBarBackgroundColor: '#1d2088',
    navigationBarTitleText: 'LuatOS蓝牙调试工具',
    navigationBarTextStyle: 'white'
  }
}
